﻿<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>盒子模型定位示例</title>
    <style type="text/css">
       *{
          margin:16px;
       }
  
       .father{
         margin:auto;
         width:1200px;
         height:600px;
         background:#a0c8ff;
      }
        .box-left{
        margin:0;
        padding:0;
        float:left;
        width:200px;
        height:200px;
        background:#009688;
        border:#4476a7 1px solid;
      }
        .box-right{
        margin:0;
        padding:0;
        float:right;
        width:200px;
        height:200px;
        background:#768093;
        border:#4476a7 1px solid;
      }
    </style>
</head>
<body>
    <div class="father">
         
        <div class="box-left">1</div>
        <div class="box-left">2</div>
        <div class="box-right">3</div>
        <div class="box-right">4</div>
</div>
</body>
</html>